﻿package com.skins
{
	import com._public._net.FaceLibrary;
	
	/**
	 * SWF皮肤库，多个皮肤库可新增FaceLibrary
	 * @author WZH(shch8.com)
	 */
	public class Skin 
	{
		private static var _faceLibrary:FaceLibrary
		private static var _frameLib:FaceLibrary
		/**
		 * 多皮肤时使用皮肤组
		 */
		public static var librarys:Librarys=new Librarys()
		/**
		 * 项目总皮肤库
		 */
		public static function get faceLibrary():FaceLibrary {
			return _faceLibrary
		}
		public static function set faceLibrary(value:FaceLibrary):void {
			_faceLibrary = value;
			librarys.addLib(value)
		}
		
		/**
		 * 窗体框架基本库
		 */
		public static function get frameLib():FaceLibrary {
			return _frameLib
		}
		public static function set frameLib(value:FaceLibrary):void {
			_frameLib = value;
			librarys.addLib(value)
		}
		/**
		 * 清除所有皮肤和位图缓存等
		 */
		public static function clearAll():void
		{
			librarys.clear()
			
		}
	}
	
}